xen/iommu: cleanup iommu related domctl handling
authorJuergen Gross <jgross@suse.com>
Tue, 7 Jun 2022 12:02:08 +0000 (14:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jun 2022 12:02:08 +0000 (14:02 +0200)
commita6c32abd144ec6443c6a433b5a2ac00e2615aa86
tree26a0d92eb9c2b13d29fa1757c00705dec3f60fd3
parent15391de8e2bb6153eadd483154c53044ab53d98d
xen/iommu: cleanup iommu related domctl handling

Today iommu_do_domctl() is being called from arch_do_domctl() in the
"default:" case of a switch statement. This has led already to crashes
due to unvalidated parameters.

Fix that by moving the call of iommu_do_domctl() to the main switch
statement of do_domctl().

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> # Arm
master commit: 9cd7e31b3f584e97a138a770cfb031a91a867936
master date: 2022-04-26 10:23:58 +0200
xen/arch/arm/domctl.c
xen/arch/x86/domctl.c
xen/common/domctl.c
xen/include/xen/iommu.h